package cn.oowoo.common.dto;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;


@Document(indexName = "employee",type = "employee")
@Data
public class Employee {
    @Id
    private String id;
    @Field
    private String firstName;
    @Field
    private String lastName;
    @Field(type= FieldType.Text)
    private String fullName;
    @Field
    private Integer age = 0;
    @Field
    private String about;


}
